<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of the routes that are handled
| by your application. Just tell Laravel the URIs it should respond
| to using a Closure or controller method. Build something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});
Route::get('logs', '\Rap2hpoutre\LaravelLogViewer\LogViewerController@index');
Route::group(['prefix' => 'shops'], function () {
    Route::any('GetShopsType', 'ShopsCategoriesController@index');
    Route::any('SearchShops', 'ShopsController@SearchShops');
    Route::any('ShopDetails', 'ShopsController@ShopDetails');
});
Route::group(['prefix' => 'order'], function () {
    Route::any('ConfirmOrder', 'OrderController@ConfirmOrder');
});
Route::group(['prefix' => 'admin'], function () {
    Route::any('login/index', 'Admin\LoginController@index')->middleware(['web']);
    Route::any('login/code', 'Admin\LoginController@code')->middleware(['web']);
    Route::any('login/login', 'Admin\LoginController@login')->middleware(['web']);
});